<?php

class ToolBoxList {
	
	private $items;
	
	public function __construct(){
		$this->items = array();
	}
	
	
	public function addItem(ToolBoxItem $i) {
		array_push($this->items, $i);
	}
	
	public function isEmpty() {
		return count($this->items)==0;
	}
	
	public function getItems() {
		return $this->items;
	}
	
}


class ToolBoxItem {

	private $title, $icon, $link;
	/**
	 * 
	 * @param $title
	 * @param $icon
	 * @param $link
	 * @return unknown_type
	 */
	public function __construct($title, $icon, $link) {
		
		$this->title = $title;
		$this->icon = $icon;
		$this->link = $link;	
	}
	
	public function getLink()  { return $this->link; }
	public function getIcon()  { return $this->icon; }
	public function getTitle() { return $this->title; }
	

}

?>